<template>
  <a-modal v-model:open="visible" :footer="null">
    <div style="text-align: center">
      <a-image :src="ts" alt="加载中..." />
    </div>
  </a-modal>
</template>

<script setup lang="ts">
import { ref } from 'vue'
import ts from '@/assets/ts.png'

const visible = ref(false)

const setVisible = (flag: boolean) => {
  visible.value = flag
}

const emit = defineEmits<{
  refresh: []
}>()

defineExpose({
  setVisible,
})
</script>
<style scoped lang="less"></style>
